home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / PLOTPNT.DMO < prev    next >
Text File  |  1996-07-04  |  3KB  |  64 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   PLOTPNT .DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. '.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
  19. ' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
  20.  
  21. $INCLUDE "DAS-NBV1.INC"
  22. SCREEN 12
  23. GraphicSETUP
  24.  
  25. ? "┌────────────────────────────────────────────────────────────────────────
  26. ? "│ Plot ( Col%, Row%, Pmode?, Colour? )
  27. ? "├────────────────────────────────────────────────────────────────────────
  28. ? "│ Rarely, but occasionally, you need to color only 1 pixel at a time.
  29. ? "│ Here's our way of doing it.
  30. ? "└────────────────────────────────────────────────────────────────────────
  31.  
  32. FOR Col% = 0 TO 99                 ' plot 10,000 pixels, one at a time
  33.   FOR Row% = 201 TO 300            ' kind'a slow!
  34.     Plot Col%, Row%, 3, 14         ' Pmode? = 3  PSET  and color = yellow
  35.   NEXT                             '
  36. NEXT                               '
  37.                                    '
  38. DELAY 1                            '
  39.                                    '
  40. FOR Col% = 10 TO 19                ' now we XOR off 400 of those yellow
  41.   FOR Row% = 211 TO 250            ' pixels like this!
  42.     Plot Col%, Row%, 2, 14         ' Pmode? = 2  XOR
  43.   NEXT                             '
  44. NEXT                               '
  45.                                    '
  46. DELAY 1                            '
  47.                                    '
  48. FOR Col% = 30 TO 39                ' XOR on a "WHITE" patch
  49.   FOR Row% = 211 TO 250            '                  14      xor     15
  50.     Plot Col%, Row%, 2, 15         ' Pmode? = 2  ( &b00001110 XOR &b00001111)
  51.   NEXT                             '
  52. NEXT                               '
  53.                                    '
  54. DELAY 1                            '
  55.                                    '
  56. FOR Col% = 30 TO 39                ' XOR off a "WHITE" patch
  57.   FOR Row% = 211 TO 250            '                    15    xor     1
  58.     Plot Col%, Row%, 2, 15         ' Pmode? = 2  ( &b00001111 XOR &b00000001)
  59.   NEXT                             '
  60. NEXT                               '
  61.                                    '
  62.  
  63.  
  64.